﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  schema="dbo"
                   assembly="OpenSda.Agilcont.Common.Data.Entities"
                   namespace="OpenSda.Agilcont.Common.Data.Entities"
                   default-lazy="false" default-cascade="none">

  <class name="CorrelativoEntidad" table="common_Correlativo_Entidad">


    <id name="Identity" column="CorrelativoEntidadId"  type="guid">
      <generator class="guid.comb"/>
    </id>

    <property name="Numero" column="Numero" type="int" not-null="false"/>
    <property name="Entidad" column="Entidad" type="String" length="50" not-null="false"/>
    <many-to-one name="AgenciaRef" column="AgenciaId" class="OpenSda.Agilcont.Comon.Data.Entities.Agencia,OpenSda.Agilcont.Comon.Data.Entities" not-null="true" />
  </class>
</hibernate-mapping>